﻿

namespace IDEAMS.model.setting
{
    public class ThresholdSettingViewModel : ViewModelBase
    {
        public ThresholdSettingViewModel()
        {

        }

        public ThresholdSettingViewModel(ThresholdSetting setting)
        {
            this.fullThreshold = setting.fullThreshold;
            this.adjoinThreshold = setting.adjoinThreshold;
        }

        public ThresholdSettingViewModel(ThresholdSettingViewModel setting)
        {
            this.fullThreshold = setting.fullThreshold;
            this.adjoinThreshold = setting.adjoinThreshold;
        }

        public ThresholdSettingViewModel Clone()
        {
            return new ThresholdSettingViewModel(this);
        }

        private double m_fullThreshold;
        public double fullThreshold
        {
            get { return m_fullThreshold; }
            set
            {
                m_fullThreshold = value;
                NotifyPropertyChanged();
            }
        }

        private double m_adjoinThreshold;
        public double adjoinThreshold
        {
            get { return m_adjoinThreshold; }
            set
            {
                m_adjoinThreshold = value;
                NotifyPropertyChanged();
            }
        }
    }
}
